
#include "rrCintamaniAPI.h"
#include "rrCintamaniWindow.h"

#ifndef H_rrCintamaniManager
#define H_rrCintamaniManager

class rrCintamaniManager
{
public :
	rrCintamaniManager( rrCintamaniAPI * api );
	~rrCintamaniManager();
	rrCintamaniWindowPtr GetWindow() const;
	FB::BrowserHostPtr GetHost() const;
	std::string GetDocumentUrl() const ;
	std::string GetDocumentFolder() const;
	bool GetRssFeedList( const std::string & FeedFile, std::vector<OpmlInfo> & feeds );
	void ExtractItem( TiXmlElement* hItem, RssItem& Item );
	bool GetRssFeed( const std::string & UrlFeed, std::vector<RssItem>& res );
	void AddPanel(Panel*pan);

private:
	rrCintamaniAPI * mApi;
	rrCintamaniWindowPtr mWindow;
	std::string mUrl;
	std::vector<Panel*> mPanels;
};
#endif